<html>
  <head>
    <script src="https://code.createjs.com/1.0.0/createjs.min.js"></script>
    <script>
      function loadImage() {
        var preload = new createjs.LoadQueue();
        preload.addEventListener("fileload", handleFileComplete);
        preload.loadFile("assets/s1.jpg");
      }

      function handleFileComplete(event) {
        document.body.appendChild(event.result);
      }
    </script>
  </head>
  <body>
    <button onclick="loadImage();" class="load-image">Load Image</button>
  </body>
</html>